
import {observable,action} from "mobx"
import { ajax } from "../api"

class ChukuList{
    @observable  list=[]

    @action getChuku=(cb)=>{
        ajax.getchulist().then(res=>{
            if(res.code==200){
                this.list=res.result
            }
            console.log(this.list)
        })
    }
    @action changeChuku=(payload)=>{
        this.list=payload
    }
}

export default new ChukuList()